package com.xiaobai.fileupload.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaobai.fileupload.dto.FileQuery;
import com.xiaobai.fileupload.entity.ChunkEntity;
import com.xiaobai.fileupload.entity.FileListEntity;
import com.xiaobai.fileupload.result.UploadResult;
import org.springframework.stereotype.Component;

@Component
public interface FileService extends IService<ChunkEntity> {
    boolean uploadChunk(ChunkEntity chunkEntity);

    UploadResult checkChunk(ChunkEntity chunkEntity);

    boolean merge(FileListEntity fileInfo);

    IPage<FileListEntity> selectFileList(FileQuery fileQuery);
}
